package com.mz.mattress.admin.service;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Goods;

import java.util.List;
import java.util.Set;

public interface GoodsService {

//    Result<IPage<Goods>> listPage(String name, Integer status, Integer pageNo, Integer pageSize);

    Result<List<Goods>> list();

    Result<Goods> getById(Integer id);

    Result add(Goods goods);

    Result updateById(Goods goods);

    Result deleteByIds(Set<Integer> ids);

}
